<template>
  <div class="edit_banner" @click="bannerClick">
    <div>{{left}}</div>
    <div>
      <slot name="right"></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: ['left'],
  methods: {
    bannerClick () {
      this.$emit('bannerClick')
    }
  }
}
</script>

<style lang="less" scoped>
.edit_banner {
  background-color: #fff;
  padding: 2.778vw;
  font-size: 3.889vw;
  color: #505050;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
</style>
